﻿@model IEnumerable<iDMS.Models.Department>
@using MvcHtmlHelpers
@{
    ViewBag.Title = "Departments";

}

<script type="text/javascript">
    $(function () {
        $("#CreateLink").button({
            icons: {
                primary: "ui-icon-plusthick"
            }
        })

    });

</script>
<h3>
    Departments - <span class="accent">Index</span></h3>

@Html.Partial("_DepartmentList", Model)

<p>
    @Html.ActionLink("Create New Department", "DepartmentCreate", null, new { @id = "CreateLink" })
</p>

@Html.Partial("_AjaxDialog")
